#include<iostream>
using namespace std;
int main()
{
	int n;
	cin >> n;
	for (int i = 31; i >= 0; i--)
	{
		cout << ((n & (1 << i))==0?"0":"1");
	}
	return 0;
}
